<?php
	class Setting_model extends CI_Model {
	    
    var $id;	
	var $web_title;	
    var $keyword;    
    var $metadata;
    var $logo;    

    function __construct()
    {
        // Call the Model constructor
        parent::__construct();
    }

    function getData()
    {
        $query = $this->db->get('settings');

        if($query->num_rows() > 1)
        {
            return $query->result();
        }
        else if($query->num_rows() == 1)
        {
            return $query->row();
        }
        else
        {
            return false;
        }
    }

    public function insert($data)
    {
        return $this->db->insert('settings', $data);
    }
}